<?php
$con = mysql_connect("localhost","loreride_admin","Reddish-335");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
  
$db_selected = mysql_select_db('loreride_planning', $con);
if (!$db_selected) {
    die ('Can\'t use loreride_planning : ' . mysql_error());
}

// some code
?>